package org.eclipse.emf.db.query;

import java.util.Arrays;

import org.eclipse.emf.extensions.IDBSchema;

public class DSL {
    private final IDBSchema schema;

    public DSL(IDBSchema schema) {
        this.schema=schema;
    }

    public SelectFromStep select(QueryExpression... expressions) {
        SelectQuery query=new SelectQuery(schema);
        query.select.addAll(Arrays.asList(expressions));
        return new SelectFromStep(query);
    }
}
